import request from '@/utils/request'

const marketRegisterApi = {
    /**
     * 注册赠送详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/market/register/detail'
        })
    },

    /**
     * 注册赠送保存
     */
    save(params: {
        status: number;
        points: number;
        train: number;
        robot: number;
        know: number;
        mcp: number;
    }): Promise<any> {
        return request.post({
            url: '/market/register/save',
            params
        })
    }
}

export default marketRegisterApi
